-- GENERATED SPELL FOR [Stormfury Revenant] --


function spell0_28826(pUnit, Event) --@Electro Shock,n/a--
pUnit:FullCastSpellOnTarget(53043,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28826', 12000, 1)
end

function spell1_28826(pUnit, Event) --@Electro Shock,n/a--
pUnit:FullCastSpellOnTarget(59168,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28826', 12000, 1)
end

function spell2_28826(pUnit, Event) --@Thunderbolt,n/a--
pUnit:FullCastSpellOnTarget(52905,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28826', 3000, 1)
end

function spell3_28826(pUnit, Event) --@Thunderbolt,n/a--
pUnit:FullCastSpellOnTarget(59167,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28826', 3000, 1)
end

function Sorts_28826(pUnit, Event)
local choix_sorts_28826 = math.random(0, 3)
if choix_sorts_28826 == 0 then
pUnit:RegisterEvent('spell0_28826', 1, 1)
end
if choix_sorts_28826 == 1 then
pUnit:RegisterEvent('spell1_28826', 1, 1)
end
if choix_sorts_28826 == 2 then
pUnit:RegisterEvent('spell2_28826', 1, 1)
end
if choix_sorts_28826 == 3 then
pUnit:RegisterEvent('spell3_28826', 1, 1)
end
end

function mob28826_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28826', math.random(1500, 3000), 1)
end

function mob28826_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28826_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28826_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28826, 1, 'mob28826_Action')
RegisterUnitEvent(28826, 2, 'mob28826_Leave')
RegisterUnitEvent(28826, 3, 'mob28826_Kill')
RegisterUnitEvent(28826, 4, 'mob28826_Die')
